package com.xinzhidi.web.equipment.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * 设备分组UpdDto对象 equipment_group
 *
 * @author ruoyi
 * @date 2023-05-26
 */
@ApiModel(value = "设备分组UpdDto对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class EquipmentGroupUpdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分组id")
    @NotNull(message = "分组id不能为空")
    @Min(value = 0, message = "分组id不能比0小")
    private Long id;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private String plotId;

    @ApiModelProperty(value = "分组名称")
    @NotBlank(message = "分组名称不能为空")
    @Size(max = 100, message = "分组名称长度不能大于100")
    private String groupName;

    @ApiModelProperty(value = "描述")
    private String remark;

}
